package com.dnjn.happiness.emo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 豆值记录
 * </p>
 *
 * @author Amber
 * @since 2023-10-09
 */
@Getter
@Setter
@TableName("emo_hlbean")
@Accessors(chain = true)
public class Hlbean extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * PK
     */

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    


    /**
     * sys_user.user_id
     */
    private Long userId;

    private LocalDateTime currDatetime;

    private LocalDate currDate;

    /**
     * 当前更新的快乐豆值
     */
    private Integer hlbeanCurr;
    /**
     * 更新之前快乐豆值
     */
    private Integer hlbeanBefore;
    /**
     * 更新之后快乐豆值
     */
    private Integer hlbeanAfter;

    /**
     * 加豆类型
     */
    private String hlbeanCode;

    private String message;

    /**
     * 是否删除|0-否 1-是|valid
     */
    private String deleted;
}
